from yearbook.models import Student, Form, CommentOnStudent
from django.contrib import admin

class CommentOnStudentInline(admin.TabularInline):
    model = CommentOnStudent
    extra = 3

class FormAdmin(admin.ModelAdmin):
    #fieldsets = [
    #    (None,      {'fields': ['owner',]}),
    #    ('Triv',    {'fields': ['story',]}),
    #    ]
    list_display = ('owner','about_me','best_subject','story')
    inlines = [CommentOnStudentInline,]
    
admin.site.register(Form,FormAdmin)
admin.site.register(Student)
